﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;


public partial class View_Cart : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        GridView1.DataSource = GetTable();
        GridView1.DataBind();

    }

    private DataTable GetTable()
    {

        DataTable dtbl1 = new DataTable();
        dtbl1.Columns.Add("View Date", typeof(string));
        dtbl1.Columns.Add("Product Name", typeof(string));
        dtbl1.Columns.Add("Category", typeof(string));
        dtbl1.Columns.Add("Price", typeof(float));
        dtbl1.Rows.Add("20.04.2012","P01", "Category01", 530.00);
        dtbl1.Rows.Add("07.03.2012", "P02", "Category02", 530.00);
        dtbl1.Rows.Add("02.04.2012", "P03", "Category03", 530.00);
        dtbl1.Rows.Add("21.04.2012", "P04", "Category04", 530.00);
        dtbl1.Rows.Add("20.04.2012", "P05", "Category05", 530.00);


        return dtbl1;
    }
}
